package ltd.hanamaki.review.unit.testn_g;


import ltd.hanamaki.review.unit.testn_g.paramter.utils.FileUtils;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import java.util.Arrays;

/**
 * @Author Hanamaki
 * @Version 1.0
 */
public class AddTestNg1 {

    static Add add;
    @BeforeClass
    public void setUp() {
        add = new Add();
    }


    @Test
    public void t() {
        int add = this.add.add(2, 2);
        System.out.println(add);
    }


    @Test
    public void test() {
        String s = "1+2+3";
        String[] split = s.split("/+");

        System.out.println(Arrays.toString(split));
        int i = s.indexOf("+");
        System.out.println(i);

    }

    @Test
    public void tw() {

//        Object[] param = {"num", "a", "b", "exp"};
//
//        String[][] sqlContent = JDBCUtils_C3P0.getSqlContent(param);
//        for (String[] strings : sqlContent) {
//            for (String string : strings) {
//                System.out.print(string + "\t");
//            }
//            System.out.println();
//        }

//        JDBCUtils_C3P0.getSqlContent(new Object[]{"num", "*"});


        FileUtils.getFileContent("src/ltd/hanamaki/review/unit/testn_g/paramter/num.txt");
    }


}